package com.albaba.designpattern.state_pattern.text_001;

/**
 * @Description: TODO
 * @Author zx
 * @Date 2025/2/25 15:36
 * @Version 1.0
 */
public class ConcreteStateA implements State {
    @Override
    public void hanld(Context context) {
        System.out.println("进入到状态模式ConcreteStateA");
        context.setCurrentState(this);
    }

    public String toString() {
        return "当前状态：ConcreteStateA";
    }
}
